import 'package:flutter/material.dart';

class HeroB extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('看大图'),
      ),
      body: Center(
        child: GestureDetector(
          child: Hero(
            tag: 'icon-60', //唯一标记，前后两个路由页Hero的tag必须相同
            child: Image.asset(
              'image/icon-60.png',
              width: 300,
              height: 300,
              fit: BoxFit.fill,
            ),
          ),

          onTap: () {
            Navigator.of(context).pop();
          },
        ),
      ),
    );
  }
}